﻿@model IEnumerable<LeadMaster.Models.FrameworkAgreements>

@{
    ViewBag.Title = "Index";
}

<p>
    @Html.ActionLink("Create New Framework Agreement", "Create")
</p>
<table class="listtable contactstable" cellspacing="0" cellpadding="0">
    <tr>

        <th class="tableheader">
            @Html.DisplayNameFor(model => model.Title)
        </th>
        <th class="tableheader">
            @Html.DisplayNameFor(model => model.DocumentName)
        </th>
        <th class="tableheader">
            @Html.DisplayNameFor(model => model.Version)
        </th>
        <th class="tableheader"></th>
    </tr>

@foreach (var item in Model) {
    <tr>

        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            <a href="~/Docs/FrameworkDocs/@(item.DocumentName)">
            @Html.DisplayFor(modelItem => item.DocumentName)
            </a>
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Version)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.FrameworkAgreementID }) |
            @Html.ActionLink("Details", "Details", new { id = item.FrameworkAgreementID }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.FrameworkAgreementID })
        </td>
    </tr>
}

</table>
